﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AiXiu.BLL;

namespace AiXiu.WebSite
{
    public partial class Voide : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //调用VideoBLL中的视频列表显示方法
            VideoBLL videoBLL = new VideoBLL();
            var list = videoBLL.GetVideos();
            //给Repeater控件指定数据源，并绑定数据显示在页面中
            rptVideos.DataSource = list;    
            rptVideos.DataBind();   
        }
    }
}